#!/usr/bin/env bash

SRCS="$@"

dir=$(dirname $0)
OS=$(uname -o)
if [[ $OS =~ Cygwin ]]
then
    abdir=$(cygpath -wa $dir)
else
    abdir=$(readlink -f $dir)
fi
CLASSPATH="$abdir/hibernate-jpa-2.1-api-1.0.0.Final.jar"
echo "$CLASSPATH"

javac -J-Dfile.encoding=UTF-8 -classpath "$CLASSPATH" $SRCS
